package com.cdck.safe.dete.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cdck.safe.dete.model.entity.ActivityUser;
import com.cdck.safe.dete.model.form.ActivityUserForm;
import com.cdck.safe.dete.model.query.BaseKeywordsQuery;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * (ActivityUser)表服务接口
 *
 * @author wp
 * @since 2024-02-26 22:59:21
 */
public interface ActivityUserService extends IService<ActivityUser> {


    /**
     * 分页列表
     *
     * @return
     */
    IPage<ActivityUser> queryByPage(ActivityUserForm queryParams);


    /**
     * 获取表单数据
     *
     * @param activityId 活动id
     * @param userId 用户id
     * @return 实例对象
     */
    ActivityUser queryIsParticipate(Long activityId, Long userId);

    /**
     * 新增数据
     *
     * @param activityUser ActivityUser对象
     * @return
     */
    boolean saveActivityUser (ActivityUser activityUser);

   /**
     * 修改数据
     *
     * @param id   id
     * @paramactivityUser ActivityUser对象
     * @return
     */
    boolean updateActivityUser(Long id, ActivityUser activityUser);

    /**
     * 删除数据
     *
     * @param idsStr id,多个以英文逗号(,)分割
     * @return
     */
    boolean deleteActivityUsers(String idsStr);

}
